﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Elements
{
    //注：说明，这里不能使用ID，要使用形状，当然后续可再改。

    public abstract class LinkBase
    {
        /// <summary>
        /// 连线ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 连线开始形状
        /// </summary>
        public ShapeBase StartShape { get; set; }
        /// <summary>
        /// 连线结束形状
        /// </summary>
        public ShapeBase EndShape { get; set; }

        /// <summary>
        /// 连线的颜色
        /// </summary>
        public Color BackgroundColor { get; set; }

        /// <summary>
        /// 绘制连线
        /// </summary>
        /// <param name="g"></param>
        public abstract void Draw(Graphics g);
    }

}
